package com.fanfanwang.ffw.app.net;

import java.util.LinkedHashMap;

import org.ksoap2.serialization.SoapObject;

import com.fanfanwang.ffw.app.common.LogUtil;

public class XSHttpService {
	/**
	 *i.	login用户注册
	 * @author lyf
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestLogin(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_users,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	
	/**
	 * 注册
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestReg(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_users,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 * ii.	isreg用户检测
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestIsReg(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_users,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 * ii.	viii.	isregReturn 用户找回密码验证码发送 
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestIsRegReturn(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_users,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 * iii.	chksms验证短信验证码
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestChksms(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_users,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 * iv.	updateMobile修改用户手机号
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestUpdateMobile(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_users,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 * v.	updateUserinfo修改用户基本资料
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestUpdateUserinfo(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_users,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 * vi.	getUserInfo获取用户基本资料
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestGetUserInfo(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_users,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 * vii.	setPassword修改用户密码
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestSetPassword(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_users,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 * viii.	setNewPassword设置用户新密码
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestSetNewPassword(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_users,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 * ix.	saveFeedback用户意见反馈
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestSaveFeedback(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_users,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
/**-------------------------------------------------------------------------parking.php*/
	/**
	 * i.	getparkingList获取当前位置停车场数组
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestGetparkingList(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_parking,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 *ii.	getCityList获取区域列表
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestGetCityList(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_parking,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 * iii.	getLengthList获取搜索距离数组
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestGetLengthList(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_parking,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 * iv.	getParkList获取指定路段停车场列表
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestGetParkList(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_parking,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 * v.	getParkingInfo获取指定停车场详细信息
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestGetParkingInfo(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_parking,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 *vi.	getDianList获取洗车店、4S店、加油站列表
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestGetDianList(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_parking,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 * vii.	order_done预约停车位
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestOrderDone(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_parking,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 * viii.	getNewsList获取汽车资讯列表
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestGetNewsList(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_parking,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 *ix.	getNewsInfo获取汽车资讯详细信息
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestGetNewsInfo(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_parking,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	
	//三、	查看预约记录
	/**
	 *i.	getOrdersList获取预约记录
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestGetOrdersList(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_parking,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	/**
	 *ii.	getOrdersInfo获取预约记录详情
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestGetOrdersInfo(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_parking,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	
	/**
	 *ii.	getAppVersion获取手机版本信息
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 */
	public String requestGetAppVersion(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_system,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	
	/**
	 *viii.	getYuyueList获取用户当天有效预约记录		
	 * @author lyf
	 * @date 2014-9-18下午6:47:03
	 * @todo TODO
	 * @param 
	 * @return
	 * a)	getYuyueList($apiusername,$apipassword,$userid)
	 */
	public String requestGetYuyueList(String methodName,LinkedHashMap<String, Object> paramsMap){
		SoapObject soapOjbect = WebServiceHelper.getSoapObject(WebServiceHelper.url_parking,methodName, null, paramsMap);
		if(null == soapOjbect){
			return "{status\":0,\"msg\":\"\"}";
		}
		LogUtil.e("XSHttpService", "request  ", soapOjbect.getPropertyAsString(0));
		String str = soapOjbect.getPropertyAsString(0);
		return str;
	}
	
	
}
